package cn.csc.module.pay.controller.app.jzbtask.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "用户 APP - 见证宝任务 Excel 导出 Request VO", description = "参数和 PayJzbTaskPageReqVO 是一致的")
@Data
public class AppPayJzbTaskExportReqVO {

    @ApiModelProperty(value = "业务场景，1:分账 2:提现 ")
    private String busiType;

    @ApiModelProperty(value = "支付订单ID")
    private BigInteger orderId;

    @ApiModelProperty(value = "见证宝订单ID")
    private BigInteger jzbOrderId;

    @ApiModelProperty(value = "定时任务执行时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] taskTime;

    @ApiModelProperty(value = "0:待执行 1:执行成功")
    private Integer taskStatus;

    @ApiModelProperty(value = "任务执行失败次数")
    private Integer taskNum;

    @ApiModelProperty(value = "创建时间(订单生成时间)")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
